package com.mind.customer.task;

import com.mind.customer.service.SyncCallApiService;
import org.springframework.stereotype.Component;

import jakarta.annotation.Resource;

@Component
public class SyncCallApiCustomerTask {

    @Resource
    private SyncCallApiService service;

    // TODO 同步调用接口
//    @Scheduled(initialDelay = 1000, fixedDelay = 1000 * 60 * 60 * 24)
    public void syncCallApi() {
        service.callApiByAttach();
        service.callApiByDetail();
    }



}
